{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "from __future__ import print_function\n",
    "import nilmtk\n",
    "import matplotlib.pyplot as plt\n",
    "%matplotlib inline"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "First, load the UKDALE dataset into NILMTK.  Here we are loading the HDF5 version of UKDALE which you can download by following [the instructions on the UKDALE website](http://www.doc.ic.ac.uk/~dk3810/data/index.html#download_hdf)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "dataset = nilmtk.DataSet('/data/mine/vadeec/merged/ukdale.h5')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Next, to speed up processing, we'll set a \"window of interest\" so NILMTK will only consider one month of data."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "dataset.set_window(\"2014-06-01\", \"2014-07-01\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Get the ElecMeter associated with the Fridge in House 1:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "BUILDING = 1\n",
    "elec = dataset.buildings[BUILDING].elec\n",
    "fridge = elec['fridge']"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Now load the activations:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "activations = fridge.get_activations()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Number of activations = 867\n"
     ]
    }
   ],
   "source": [
    "print(\"Number of activations =\", len(activations))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXYAAAEDCAYAAAAhsS8XAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHENJREFUeJzt3XmUXGWd//H3JwmJEJBA4ISwyaJBgoAiogJKq8BBUMAF\nUFQCopwZREHZEkYgOMjmsOjwYxQQJqOAZhQRBH+SYWxZBBQGAYkZghBNWDoo6UBESHf6O388t+jq\n7lq6qrd7K5/XOX267lpPkptvfe/3ee5TigjMzKx1jBvrBpiZ2fByYDczazEO7GZmLcaB3cysxTiw\nm5m1GAd2M7MWUzOwS7pGUoekRytsO1lSj6SNy9bNkbRY0iJJ+49Eg83MrLZ6Gfu1wAH9V0raCtgP\n+FPZupnAEcDM7JgrJPmOoIVIahvrNljr8vU1fGoG3oi4C1hRYdMlwGn91h0C3BARXRGxBHgC2GM4\nGmm50TbWDbCW1jbWDWgVDWfUkg4BlkXEI/02bQ4sK1teBmwxhLaZmVkTJjSys6T1gDNIZZjXVtc4\nxPMVmJmNsoYCO7A9sA3wsCSALYEHJb0TeBrYqmzfLbN1fWR1tLayVWc32AYbQ5L872UjxtdXw84p\ne90eEe0AqjcJmKRtgFsiYucK254C3h4RL2Sdp9eT6upbAP8FvDHqvIGkeruYmVk/koiIihWTesMd\nbwB+DcyQtFTSMf12eS0iR8RCYD6wEPg5cLwjtpnZ6KubsY94A5yxm5k1rOmM3czMiseB3cysxTiw\nm5m1GAd2M7MW48BuZtZiHNjNzFqMA7uZWYtxYDczazEO7GZmLcaB3cysxTiwm5m1GAd2M7MW48Bu\nZtZiHNjNzFqMA7uZWYtxYDczazEO7GZmLcaB3cysxTiwm5m1GAd2M7MWUzOwS7pGUoekR8vWfUPS\nHyQ9LOlGSRuWbZsjabGkRZL2H8mGm5lZZfUy9muBA/qtux3YKSJ2BR4H5gBImgkcAczMjrlCku8I\nzMxGWc3AGxF3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ki6Abg3Ir4laX3gMOAdwPkRsVTSUcDHSU//PR8RR49da62IfI2tXZyx58ONpHHo0yNi\nFenW+FVg02z7jqQHjR72fzhrkq+xtYgDez7cDfwFOBogIh4kjRGeJGkr0jQAMyLijDFroRWdr7G1\niB9QyoFsdMJNwIWS/kj6VplXga6IWAqcPaYNtMLzNbZ2cY09RyQdSKp9vhu4vDSXutlw8TW2dnBg\nz5lsjo41EbFmrNtircnXWOtzYDczazHuPDUzazEO7GZmLcaB3cysxTiwm5m1GAd2M7MW48BuZtZi\nHNjNzFqMA7uZWYv5PzIy3uNoSOnxAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f173d3eaed0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "activations[1].plot()\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
